package com.jo.advisor;

import java.util.List;

/**
 * 默认pointcut实现，简单的通过beanName匹配，未实现表达式解析
 * @author Jo
 * @date 2018/1/26
 */
public class DefaultPointcut implements Pointcut {
    private List<String> targetsBeanName;

    public DefaultPointcut(List<String> targetsBeanName) {
        this.targetsBeanName = targetsBeanName;
    }

    @Override
    public boolean match(String beanName) {
        return targetsBeanName.contains(beanName);
    }
}
